package cn.uniqueinfo.dp.service.impl;

import cn.uniqueinfo.dp.mapper.MenuMapper;
import cn.uniqueinfo.dp.service.IMenuService;
import cn.uniqueinfo.dp.service.base.BaseServiceImpl;
import cn.uniqueinfo.dp.vo.MenuVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-30 16:40:31
 * @description: 菜单表
 */
@Service
public class MenuServiceImpl extends BaseServiceImpl<MenuVO> implements IMenuService {
    private MenuMapper mapper;

    public MenuServiceImpl(MenuMapper mapper) {
        this.mapper = mapper;
        this.baseMapper = mapper;
    }

    @Override
    public List<MenuVO> findByUserId(Long userId) {
        return this.mapper.findByUserId(userId);
    }
}
